/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : IV_tblReceiptLists.cs         
 * Created by           : Auto - 03/29/2014 10:21:30                     
 * Last modify          : Auto - 03/29/2014 10:21:30                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class IV_tblReceiptLists : BaseEntity
	{
		public IV_tblReceiptLists()
		{
		}

	    #region Properties

		private string _ReceiptNo;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(20)]
        public string ReceiptNo 
		{ 
			get
			{
                return _ReceiptNo;
			}
			set 
			{ 
                _ReceiptNo = value;
			} 
		}

		private DateTime? _ReceiptDate;
        public DateTime? ReceiptDate 
		{ 
			get
			{
                return _ReceiptDate;
			}
			set 
			{ 
                _ReceiptDate = value;
			} 
		}

		private string _VendorID;
        [MaxLength(20)]
        public string VendorID 
		{ 
			get
			{
                return _VendorID;
			}
			set 
			{ 
                _VendorID = value;
			} 
		}

		private string _WarehouseID;
		[Required]
        [MaxLength(20)]
        public string WarehouseID 
		{ 
			get
			{
                return _WarehouseID;
			}
			set 
			{ 
                _WarehouseID = value;
			} 
		}

		private string _DeliveryName;
        [MaxLength(200)]
        public string DeliveryName 
		{ 
			get
			{
                return _DeliveryName;
			}
			set 
			{ 
                _DeliveryName = value;
			} 
		}

		private DateTime? _CreatedDate;
        public DateTime? CreatedDate 
		{ 
			get
			{
                return _CreatedDate;
			}
			set 
			{ 
                _CreatedDate = value;
			} 
		}

		private string _UserID;
        [MaxLength(20)]
        public string UserID 
		{ 
			get
			{
                return _UserID;
			}
			set 
			{ 
                _UserID = value;
			} 
		}
		/// <summary>
        /// Column: IV_tblReceiptListsLines.ReceiptNo
        /// </summary>
		public ICollection<IV_tblReceiptListsLines> IV_tblReceiptListsLines { get;set; }

		/// <summary>
        /// Column: IV_tblWarehouses.WarehouseID
        /// </summary>
		public IV_tblWarehouses IV_tblWarehouses { get;set; }

		/// <summary>
        /// Column: PP_tblVendors.VendorID
        /// </summary>
		public PP_tblVendors PP_tblVendors { get;set; }


        #endregion
	}
}
